﻿<%@ Page Title="" Language="C#" MasterPageFile="~/View/Master/Main.Master" AutoEventWireup="true" CodeBehind="ProductList.aspx.cs" Inherits="CH.FourBoards.LagerWalti.WebFrontEnd.View.ProductList" %>

<asp:Content runat="server" ContentPlaceHolderID="MainContent">

    <div class="container">
        <h1 class="page-header">Products</h1>

        <div class="table-responsive">

            <table class="table table-hover" data-recordset="products">
                <thead>
                    <tr>
                        <th>#</th>
                        <th>Category</th>
                        <th>Name</th>
                        <th>Bundle</th>
                    </tr>
                </thead>
                <tbody>
                    <asp:Repeater runat="server" ID="RecordSetRepeater">
                        <ItemTemplate>
                            <tr data-record-url="<%# DataBinder.Eval(Container.DataItem, "RecordUrl") %>">
                                <td><%# DataBinder.Eval(Container.DataItem, "Id") %></td>
                                <td><a href="<%# DataBinder.Eval(Container.DataItem, "CategoryLink") %>"><%# DataBinder.Eval(Container.DataItem, "CategoryName") %></a></td>
                                <td><%# DataBinder.Eval(Container.DataItem, "Name") %></td>
                                <td><%# DataBinder.Eval(Container.DataItem, "Bundle") %></td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
        </div>
    </div>

</asp:Content>
